/**
 * @filename:FlowLog May 12, 2023
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;

/**   
 * @Description:TODO(资金流水实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sn_flow_log")
@ApiModel(value="sn_flow_log对象", description="资金流水表")
public class FlowLog extends Model<FlowLog> {

	private static final long serialVersionUID = 1683845086743644L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "uid") 	
	@ApiModelProperty(name = "uid" , value = "用户ID")
    private Long uid;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_real_name" , value = "姓名")
    private String user_real_name;
    
    @TableField(value = "order") 	
	@ApiModelProperty(name = "order" , value = "订单编号")
    private String order;
    
    @TableField(value = "number") 	
	@ApiModelProperty(name = "number" , value = "金额")
    private Double number;
    
    @TableField(value = "balance") 	
	@ApiModelProperty(name = "balance" , value = "剩余")
    private Double balance;
    
    @TableField(value = "type") 	
	@ApiModelProperty(name = "type" , value = "类型")
    private Integer type;
    
    @TableField(value = "mold") 	
	@ApiModelProperty(name = "mold" , value = "类型")
    private Integer mold;
    
    @TableField(value = "remark") 	
	@ApiModelProperty(name = "remark" , value = "备注")
    private String remark;
    
    @TableField(value = "agent") 	
	@ApiModelProperty(name = "agent" , value = "代理ID")
    private Long agent;
    
    @TableField(value = "staff") 	
	@ApiModelProperty(name = "staff" , value = "员工id")
    private Long staff;
    
    @TableField(value = "net_recharge") 	
	@ApiModelProperty(name = "net_recharge" , value = "净充值")
    private Double net_recharge;
    
    @TableField(value = "mother") 	
	@ApiModelProperty(name = "mother" , value = "母账户id")
    private Long mother;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "创建时间")
    private Date create_time;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_name" , value = "昵称")
    private String user_name;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_phone" , value = "电话")
    private String user_phone;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_caller" , value = "客服专员")
    private String user_caller;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
